<?php 
$tableImage="7_48x48.png";
$this->headTitle($this->__(ucfirst($this->controller).' Management'));
?>

<?php $this->placeholder('grid-content')->captureStart('SET') ?>
	<?php foreach($this->paginator as $item):?>
        <tr>			    	    			
        	<td class="a-center ">
                 <input type="checkbox" class="massaction-checkbox" value="<?php echo $item->id?>" name="id[]">
            </td>
            <td class="a-right " style="width:35px;"><?php echo $item->id?></td>
            <td>
	             <?php echo $item->type?>
            </td>
            <td >
            	<div class="meta">
	            <ul style="margin-left:-9px;">
					<li><a href="<?php echo $this->baseUrl('/'.$this->module.'/'.$this->controller.'/edit/id/'.$item->id)?>" style="width:60px;" class="tooltip" title="Edit the data" href="#"><span class="ui-icon ui-icon-document"></span>
					<?php echo $this->__("Edit") ?></a></li>
				</ul>	
				</div>
            </td> 
        </tr>
	<?php endforeach; ?>
<?php $this->placeholder('grid-content')->captureEnd() ?>
    
<?php echo $this->action(
		'render', 'block', 'blocks',
		array(
			'template'=>'grid',
			'grid'=>'users',
			'tableTitle'=>ucfirst($this->controller),
		    'tableImage'=>$tableImage,
		    'viewAction'=>'/'.$this->controller,
			'state'=>$this->state,
			'paginator'=>$this->paginator,
			'buttons'=>array(
				array(
						'type'=>'button',
						'class'=>'scalable',
						'title'=>$this->__('Reset Filter'), 
						'action'=>"setLocation('{$this->baseUrl('/'.$this->module.'/'.$this->controller.'/reset')}')"
					),
				array(
						'type'=>'submit',
					    'class'=>'scalable task',
					    'title'=>$this->__('Search'), 				    						
				)
			),
			'colnums'=>array(		
				'checkbox' => '&nbsp;',
				'id' => $this->__('ID'),
				'type' => $this->__('Type'),
				'action' => $this->__('Action'),		
				),
			'action'=> $this->baseUrl('/'.$this->module.'/'.$this->controller),
			'content'=> $this->placeholder('grid-content'),
		)
	) ?>